package com.woniu.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

import com.woniu.vo.ClassifyVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyy
 * @since 2021-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_classify")
@ApiModel(value="Classify对象", description="")
public class Classify implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer level;

    private Integer cid;

    @ApiModelProperty(value = "父级目录下面的子目录")
    @TableField(exist = false)
    private LinkedHashSet<Classify> children;

    @ApiModelProperty(value = "父级目录下面的补充子目录")
    @TableField(exist = false)
    private LinkedHashSet<ClassifyVo> children2;






}
